﻿@model Supplier

<div class="w-100 card border-0 p-4">
    <div class="card-header bg-success bg-gradient m-lg-0 py-3">
        <div class="row">
            <div class="col-12 text-center">
                <h2 class="text-white py-2">创建供应商</h2>
            </div>
        </div>
    </div>
    <div class="card-body border p-4">
        <form method="post" class="row" enctype="multipart/form-data">
            <div class="p-3">
                @* <div asp-validation-summary="ModelOnly"></div> *@
                <div class="form-floating py-2 col-12">
                    <input asp-for="Name" class="form-control border shadow" />
                    <label asp-for="Name" class="ms-2">名称</label>
                    <span asp-validation-for="Name" class="text-danger"></span>
                </div>

                <div class="form-floating py-2 col-12">
                    <input asp-for="Province" class="form-control border shadow" />
                    <label asp-for="Province" class="ms-2">省份</label>
                    <span asp-validation-for="Province" class="text-danger"></span>
                </div>
                <div class="form-floating py-2 col-12">
                    <input asp-for="City" class="form-control border shadow" />
                    <label asp-for="City" class="ms-2">城市</label>
                    <span asp-validation-for="City" class="text-danger"></span>
                </div>
                <div class="form-floating py-2 col-12">
                    <input asp-for="Address" class="form-control border shadow" />
                    <label asp-for="Address" class="ms-2">地址</label>
                    <span asp-validation-for="Address" class="text-danger"></span>
                </div>
                <div class="form-floating py-2 col-12">
                    <input asp-for="PhoneNumber" class="form-control border shadow" />
                    <label asp-for="PhoneNumber" class="ms-2">联系方式</label>
                    <span asp-validation-for="PhoneNumber" class="text-danger"></span>
                </div>


                <div class="row pt-2">
                    <div class="col-6 col-md-3">
                        <button type="submit" class="btn btn-success w-100">
                            <i class="bi bi-check-circle"></i> 创建
                        </button>
                    </div>
                    <div class="col-6 col-md-3">
                        <a asp-controller="Supplier" asp-action="Index" class="btn btn-secondary w-100">
                            <i class="bi bi-x-circle"></i> 取消
                        </a>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>


@section Scripts {
    @{
        <partial name="_ValidationScriptsPartial" />
    }
}